package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.PublicClass;
import com.yyp.dao.PublicClassDao;
import com.yyp.service.PublicClassService;

@Service
public class PublicClassServiceImpl implements PublicClassService {
	@Resource
	PublicClassDao publicClassImpl;

	//
	// public void del(String names) {

	// PublicClassImpl.delete(names);
	// }

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.yyp.service.impl.PublicClassService#del(int)
	 */
	/* (non-Javadoc)
	 * @see com.yyp.service.impl.PublicClassService#del(int)
	 */
	public void del(int id) {

		publicClassImpl.delete(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.yyp.service.impl.PublicClassService#find(java.lang.Integer)
	 */
	// public PublicClass find(Integer id) {
	// return PublicClassImpl.find(id);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.PublicClassService#find(java.lang.String)
	 */
	public PublicClass find(String name) {
		return publicClassImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.PublicClassService#findAll()
	 */
	public List<PublicClass> findAll() {
		return publicClassImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.PublicClassService#save(com.yyp.bean.PublicClass)
	 */
	public void save(PublicClass entity) {
		publicClassImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.PublicClassService#updata(com.yyp.bean.PublicClass)
	 */
	public void updata(PublicClass entity) {
		publicClassImpl.updata(entity);
	}

}
